package com.gwm.common.exceptions;


import com.gwm.common.enums.ExceptionEnums;
import lombok.Getter;

@Getter
public class LyException extends RuntimeException {
    private int status;
    public LyException( int status,String message) {
        super(message);
        this.status = status;
    }

    public LyException(ExceptionEnums exEnums) {
        super(exEnums.getMessage());
        this.status = exEnums.getStatus();
    }
}
